$.texyla("setDefaults", {
	imgWindowDimensions: [350, 250]
});

// přepíše původní obrázkové tlačítko
$.texyla("addButton", "img", function () {
	var _this = this;

	var el = $(
		"<div><table><tbody>" +
		'<tr><th><label>' + this.lng.imgSrc + '</label></th><td><input type="text" class="src"></td></tr>' +
		'<tr><th><label>' + this.lng.imgAlt + '</label></th><td><input type="text" class="alt"></td></tr>' +
		'<tr><td></td><td><label><input type="checkbox" class="descr">' + this.lng.imgDescription + '</label></td></tr>' +
		'<tr><th><label>' + this.lng.imgAlign + '</label></th><td><select class="align">' +
		'<option value="*">' + this.lng.imgAlignNone + '</option>' +
		'<option value="<">' + this.lng.imgAlignLeft + '</option>' +
		'<option value=">">' + this.lng.imgAlignRight + '</option>' +
		'<option value="<>">' + this.lng.imgAlignCenter + '</option>' +
		"</select></td></tr></tbody></table></div>"
	);
	
	this.window({
		name: "img",
		el: el,
		title: this.lng.imgHeading,
		func: function () {
			_this.texy.img(
				el.find(".src").val(),
				el.find(".alt").val(),
				el.find(".align").val(),
				el.find(".descr").get(0).checked
			);
		}
	});
});